package com.dodayum.service.impl;

import com.dodayum.po.User;
import com.dodayum.service.UserService;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Override
    public String sayHello(User user) {
        return String.format("用户：%s\t说了一句hello", user.getUserName());
    }

    @Override
    public String sayHelloDemo() {
        System.out.println("测试服务");
        return "测试服务";
    }

    @Override
    public String sayHelloDemo(String name) {
        return String.format("用户%s说了一句hello",name);
    }
}
